<?php
namespace app\api\controller;
use app\api\controller\Base;
/**
 * 公共信息
 */ 
class Hotel extends Base
{
    /**
     * 获取商品分类列表信息
     * @url     /Hotelrule/index
     * @http    get
     * @data    {}
     * @return  array of getGoodsTypeList item , code 200
     * 
     */
    public function rule()
    {
        $list = model('HotelModel')->getRule();
        return model('Res')->ctx($list);
    }
    public function info()
    {
        $list = model('HotelModel')->getHotelInfo();
        $com = db('comment')->where(['status'=>1])->select();
        if($com){
            $list['comleng'] = count($com);
        }else{
            $list['comleng'] = 0;
        }
        

        return model('Res')->ctx($list);
    }
    
	
	
	
}